# -*- mode:makefile -*-;   For Emacs users!

#--------------------------------------------------------------------------
# Nothing to change below this line.
#--------------------------------------------------------------------------

CIAOC=ciaoc-1.10
LPMAKE=lpmake-1.10

INSTALLATION_ROOT=$(INSTALLATION_FILE_ROOT)/$(SUBROOT_PATH)/
INSTALLATION_URL=$(INSTALLATION_URL_ROOT)/$(SUBROOT_PATH)/

CSS_DIR=$(INSTALLATION_ROOT)
CSS_URL=$(INSTALLATION_URL)

CGI_DIR=$(INSTALLATION_FILE_CGI_ROOT)/$(SUBROOT_PATH)/cgi-bin
CGI_URL=$(INSTALLATION_URL_CGI_ROOT)/$(SUBROOT_PATH)/cgi-bin/

FILLIN_DIR=$(INSTALLATION_FILE_CGI_ROOT)/$(SUBROOT_PATH)/DbFillIn

IMAGES_DIR=$(INSTALLATION_ROOT)
IMAGES_URL=$(INSTALLATION_URL)

STATICPAGESGEN=$(SOURCEDIR)/PortalFiles/StaticPages
WEBDBTEMPLATESGEN=$(SOURCEDIR)/PortalFiles/WebDbTemplates
CSSFILES=$(SOURCEDIR)/PortalFiles/CssFiles

WEBDBINSTANCENAME=WebDB

# The engine sometimes needs to store temporary transaction data.  This is
# cleaned from time to time (e.g., when the daemon restarts).  
# It should not grow without control, and it _must not_ be erased by hand.
PERSISTENT_DATA_DIR=$(DATA_ROOT)/$(SUBROOT_PATH)/Pers

# AMOS needs a directory to store internal networking data. Set it now and 
# do not ever edit it.
ADDR_DIR=$(DATA_ROOT)/$(SUBROOT_PATH)/WebDB_AMOS

# This is the directory where log messages are stored.  This can be
# safely deleted at any time, and it is only useful to catch errors.
LOG_DIR=$(DATA_ROOT)/$(SUBROOT_PATH)/Log

# In a future, transactions can be stored for further processing and to
# study what people looks for.  At the moment it is not being used.
SAVE_DATA_DIR=$(DATA_ROOT)/$(SUBROOT_PATH)/Data


#--------------------------------------------------------------------------
# Test version. Nothing to change below this line.
#--------------------------------------------------------------------------

INSTALLATION_ROOT_TEST=$(INSTALLATION_FILE_ROOT_TEST)/$(INSTALLATION_SUBPATH_TEST)
INSTALLATION_URL_TEST=$(INSTALLATION_URL_ROOT_TEST)/$(INSTALLATION_SUBPATH_TEST)

CSS_DIR_TEST=$(INSTALLATION_ROOT_TEST)
CSS_URL_TEST=$(INSTALLATION_URL_TEST)

CGI_DIR_TEST=$(INSTALLATION_ROOT_TEST)/cgi-bin
CGI_URL_TEST=$(INSTALLATION_URL_TEST)/cgi-bin

FILLIN_DIR_TEST=$(INSTALLATION_FILE_CGI_ROOT)/$(SUBROOT_PATH)/DbFillIn

# Database vars used for setting up AMOS database
DATABASE_CLIENT_COMMAND=mysql
DATABASE_CLIENT_FLAGS=-u $(DATABASE_USER) -p$(DATABASE_PASSWORD) -h $(DATABASE_HOST)
DATABASE_ROOT_FLAGS=-u root -p -h $(DATABASE_HOST)
DB_USER_CREATION_FILE=./DataBase/mysql_user_creation.sql
DB_CREATION_FILE=./DataBase/mysql_creation.sql
DB_CREATION_SCRIPT=./db_creation_script
DB_REMOVAL_SCRIPT=./db_removal_script
DB_REMOVAL_FILE=./DataBase/mysql_db_removal.sql

DBSERVER_START_SCRIPT=./dbserver_start
DBSERVER_STOP_SCRIPT=./dbserver_stop
#----------------------------------------------------------------------------
